package com.kylin.order.api.dto.req;

import com.kylin.shared.enums.PayModeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * 下单请求参数
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年01月15日 20:39
 */
@Data
@Builder
@ApiModel("下单请求参数")
public final class PlaceOrderReqDTO implements Serializable {

    @ApiModelProperty(value = "营销商品ID")
    private Long boardId;

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "配送地址")
    private Long addressId;

    @ApiModelProperty(value = "优惠券ID")
    private Long couponId;

    @ApiModelProperty(value = "购买数量")
    private Integer quantity;

    @ApiModelProperty(value = "运费")
    private Long freight;

    @ApiModelProperty(value = "支付模式")
    private PayModeEnum payMode;

    @ApiModelProperty(value = "支付金额")
    private Long payAmount;

    @ApiModelProperty(value = "卖家留言")
    private String message;
}
